/**
 * 全局静态数据
 *
 * @author wenchuan.li
 * @date 2018/12/31 14:50
 */
define(function () {

    var datas = {
        'sys_1_0': [
            {code: '0', value: '否'}, {code: '1', value: '是'}
        ],
        'sys_y_n': [
            {code: 'Y', value: '有效'}, {code: 'N', value: '无效'}
        ]
    };

    //用户状态
    datas['sys_user_status'] = [
        {code: '', value: '全部'}, {code: '1', value: '正常'}, {code: '3', value: '冻结'}
    ];

    //用户性别
    datas['sys_user_sex'] = [
        {code: '', value: '全部'}, {code: '1', value: '男'}, {code: '2', value: '女'}, {code: '3', value: '未知'}
    ];

    //用户类型
    datas['sys_user_type'] = [
        {code: '', value: '全部'}, {code: 'SUPP', value: '内部用户'}, {code: 'STAFF', value: '外部用户'}
    ];

    //全局参数分组
    datas['sys_params_group'] = [
        {code: '', value: '全部'}, {code: '1', value: '系统缺省参数'}, {code: '2', value: '平台缺省参数'}
    ];

    //组件类型
    datas['sys_cmp_type'] = [
        {code: '', value: '全部'}, {code: '1', value: '按钮'}, {code: '2', value: '表单输入'}
    ];

    //字典分组
    datas['sys_dic_type'] = [
        {code: '', value: '全部'}, {code: '1', value: '系统缺省参数'}, {code: '2', value: '平台缺省参数'}
    ];

    //字典分组
    datas['sys_dic_gen_type'] = [
        {code: '0', value: '全部'}, {code: '1', value: 'store'}, {code: '2', value: 'render'}
    ];

    //字典启用状态
    datas['sys_dic_status'] = [
        {code: '0', value: '否'}, {code: '1', value: '是'}
    ];

    //功能模块状态
    datas['sys_module_status'] = [
        {code: '0', value: '否'}, {code: '1', value: '是'}
    ];

    //部门节点是否自动展开
    datas['sys_org_is_auto_expand'] = [
        {code: '1', value: '是'}, {code: '0', value: '否'}
    ];

    //部门节点是否叶子节点
    datas['sys_org_is_leaf'] = [
        {code: '1', value: '是'}, {code: '0', value: '否'}
    ];

    //部门类型
    datas['sys_org_type'] = [
        {code: '1', value: '1.集团'}, {code: '2', value: '2.公司'}, {code: '3', value: '3.维修部'}, {code: '4', value: '4.服务部'},
        {code: '5', value: '5.物流部'},{code: '6', value: '6.市场部'},{code: '7', value: '7.采购部'},{code: '8', value: '8.业务部'},
        {code: '9', value: '9.门店'},
        {code: 'A', value: 'A.经销商'},{code: 'B', value: 'B.供应商'}
    ];

    //角色是否可用
    datas['sys_role_is_enable'] = [
        {code: '1', value: '是'}, {code: '0', value: '否'}
    ];

    //角色类型
    datas['sys_role_type'] = [
        {code: '1', value: '缺省'}
    ];

    //角色组件状态
    datas['sys_role_cmp_status'] = [
        {code: '3', value: '显示'}, {code: '4', value: '隐藏'}, {code: '0', value: '禁用'}
    ];

    datas['type'] = [
        {code: '2', value: '管理员'}, {code: '0', value: '内部用户'}, {code: '1', value: '外部用户'}
    ];

    datas['role'] = [
        {code: '2', value: '管理员'}, {code: '0', value: '内部角色'}, {code: '1', value: '外部角色'}
    ];

    //任务状态
    datas['sys_task_status'] = [
        {code: '0', value: '未启动'},{code: '1', value: '已启动'}
    ];

    //任务组
    datas['sys_task_group'] = [
        {code: '0', value: '其他'},{code: '1', value: '同步任务'}
    ];

    datas['sys_notice_gwdh002'] = [
        {code: '1', value: '组织公告'},
        {code: '2', value: '渠道公告'},
        {code: '3', value: '客户公告'}
    ];

    datas['sys_column_types'] = [
        {code: 'VARCHAR', value: '字符串'},
        {code: 'DECIMAL', value: '数字'},
        {code: 'DATE', value: '日期'},
        {code: 'DATETIME', value: '日期时间'},
        {code: 'TEXT', value: 'TEXT'}
    ];

    datas['sys_column_types'] = [
        {code: 'VARCHAR', value: '字符串'},
        {code: 'DECIMAL', value: '数字'},
        {code: 'DATE', value: '日期'},
        {code: 'DATETIME', value: '日期时间'},
        {code: 'TEXT', value: 'TEXT'}
    ];

    datas['sys_column_types_oracle'] = [
        {code: 'VARCHAR2', value: '字符串'},
        {code: 'NUMERIC', value: '数字'},
        {code: 'DATE', value: '日期'},
        {code: 'TIMESTAMP', value: '日期时间'},
        {code: 'CLOB', value: 'CLOB'}
    ];

    //是否
    datas['sys_n_y'] = [
        {code: 'N', value: '否'},{code: 'Y', value: '是'}
    ];

    if (!app.datas_) {
        app.datas_ = function (name) {
            return app.cloneJSON(datas[name]);
        };
    }

    return datas;

});